package com.ruoyi.develop.goodsSaledoGongxuUser.service;

import java.util.List;

import com.ruoyi.develop.goodsSaledoGongxuUser.domain.GoodsSaledoGongxuUser;

/**
 * 订单产品工序分配任务Service接口
 * @author qh
 * @date 2024-11-11
 */
public interface IGoodsSaledoGongxuUserService {
    /**
     * 查询订单产品工序分配任务
     * @param id 订单产品工序分配任务主键
     * @return 订单产品工序分配任务
     */
    public GoodsSaledoGongxuUser selectById(String id);

    /**
     * 查询订单产品工序分配任务列表
     * @param entity 订单产品工序分配任务
     * @return 订单产品工序分配任务集合
     */
    public List<GoodsSaledoGongxuUser> selectList(GoodsSaledoGongxuUser entity);

    public List<GoodsSaledoGongxuUser> listHavedo(GoodsSaledoGongxuUser entity);

    public List<GoodsSaledoGongxuUser> listHavedoGroup(GoodsSaledoGongxuUser entity);
    /**
     * 新增订单产品工序分配任务
     * @param entity 订单产品工序分配任务
     * @return 结果
     */
    public int insert(GoodsSaledoGongxuUser entity);

    public int addUserTask(GoodsSaledoGongxuUser entity);

    public int addUserTaskZhuanpai(GoodsSaledoGongxuUser entity);

    public int addUserTaskPiliang(GoodsSaledoGongxuUser entity);

    public int addUserTaskJishiPiliang(GoodsSaledoGongxuUser entity);

    public int addUserTaskPiliangJishiZahuo(GoodsSaledoGongxuUser entity);

    public int addUserTaskPiliangZahuo(GoodsSaledoGongxuUser entity);
    /**
     * 修改订单产品工序分配任务
     * @param entity 订单产品工序分配任务
     * @return 结果
     */
    public int update(GoodsSaledoGongxuUser entity);

    public int updateCounts(GoodsSaledoGongxuUser entity);
    /**
     * 批量删除订单产品工序分配任务
     * @param ids 需要删除的订单产品工序分配任务主键集合
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    /**
     * 删除订单产品工序分配任务信息
     * @param id 订单产品工序分配任务主键
     * @return 结果
     */
    public int deleteById(String id);
    public int deleteByIdsUpdate(String id);

    public int editAllTuzhihao(GoodsSaledoGongxuUser entity);

    public int updateStatusByParentId(String status,String parentId);
    public void updateAllNotLast(String gongyiId);
    public void updateLastById(String id);
}
